﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Newtonsoft.Json;

namespace IDotNet.MapLibs.Web
{
    public partial class Map : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            var method = Request["method"] ?? string.Empty;
            switch (method.ToLower())
            {
                case "selectmap":
                case "managemap":
                case "mapdrawarea":
                case "getaddressmaploc":
                    Controls.Add(Page.LoadControl("~/pages/" + method + "page.ascx"));
                    break;
                default:
                    Response.Write("未知方法！");
                    Response.End();
                    break;
            }
        }

    }
}